//
//  FQHomeBackgroundController.swift
//  SwiftProject
//
//  Created by 董駸 on 2023/4/7.
//

import UIKit

class FQHomeBackgroundController: BaseListSectionController {
    var model : FQHomeBackgroundModel!
    
    override func sizeForItem(at index: Int) -> CGSize {
        CGSize(width: SCREEN_WIDTH, height: 575~)
    }
    
    override func cellForItem(at index: Int) -> UICollectionViewCell {
        let cell = dequeueReusableCell(cellType: FQHomeBackgroundCollectionViewCell.self, index: index)
        cell.model = model
        cell.buttonBlock = { [unowned self] in
            let vc = FQIDCardAuthViewController()
            self.viewController?.navigationController?.qmui_pushViewController(vc, animated: true)
        }
        return cell
    }
    
    override func didSelectItem(at index: Int) {
      
    }
    
    override func didUpdate(to object: Any) {
        model = object as? FQHomeBackgroundModel
    }
    
}
